package realarm.hardwaretest.jniinterface;

/**
 * Date    04/12/2018
 * Author  WestWang
 * 串口读取回调监听
 */
public interface SerialPortListener {

    /**
     * 串口数据读取回调
     *
     * @param result {@linkplain String} 数据
     */
    void onReadResult(String result);

    /**
     * 串口错误回调
     *
     * @param errorMsg {@linkplain} 错误信息
     */
    void onError(String errorMsg);
}